package com.ss.android.article.base.feature.user.account.view;

import android.view.View;

import com.ss.android.article.base.feature.user.account.presenter.AccountEditPresenter;

final class e implements View.OnClickListener {
    private final a a;

    e(a arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg6) {
        if (this.a.isViewValid()) {
            String v1 = com.ss.android.article.base.feature.user.account.view.a.f(this.a).b();
            if (com.ss.android.article.base.feature.user.account.view.a.g(this.a).e.userName.equals(v1)) {
                com.ss.android.article.base.feature.user.account.view.a.h(this.a).a(this.a.getString(com.ss.android.article.browser.R.string.ss_modify_same));
                com.ss.android.article.base.feature.user.account.view.a.f(this.a).d();
            } else {
                com.ss.android.article.base.feature.user.account.presenter.AccountEditPresenter v0 = com.ss.android.article.base.feature.user.account.view.a.i(this.a);
                ((AccountEditPresenter) v0).j = v1;
                if (v0.hasView()) {
                    v0.mView.a(true);
                }

                int v0_1 = com.ss.android.article.base.feature.user.account.view.a.j(this.a).f;
                if (v0_1 == 0) {
                    com.ss.android.article.base.feature.user.account.view.a.k(this.a).setVisibility(View.INVISIBLE);
                    this.a.a(false, v1, true);
                    this.a.a(true);
                } else {
                    if (v0_1 != 1 && v0_1 != 2) {
                    } else {
                        com.ss.android.article.base.feature.user.account.view.a.k(this.a).setVisibility(View.VISIBLE);
                        com.ss.android.article.base.feature.user.account.view.a.l(this.a).f();
                    }
                }
                com.ss.android.article.base.feature.user.account.view.a.f(this.a).d();
            }
        }
    }
}

